<template>
  <el-card class="box-card">
    <div slot="header" class="clearfix">
      <span>合分闸/三通闸/相电压</span>
    </div>
    <el-row :gutter="20" type="flex">
      <el-col :span="6">
        <card name="合分闸"></card>
        <card name="排温三通阀"></card>
        <card name="紧急三通阀"></card>
        <card name="中冷三通阀"></card>
        <card name="热水三通阀"></card>
      </el-col>
      <el-col :span="6">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span style="font-size: 14px">原料累计(m3)</span>
            <div
              style="float: right; font-size: 20px; color: #409eff"
              type="text"
            >
              0
            </div>
          </div>
          <div class="myflex">
            <el-button type="danger">清除</el-button>
            <el-button type="primary">远程启动</el-button>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span style="font-size: 14px">TT030进料预热后温度调节</span>
          </div>
          <div class="mytable3">
            <div>
              <div class="orange">{{ num }}</div>
              <div>当前温度</div>
            </div>
            <el-input-number
              v-model="num"
              :min="0"
              :max="100"
            ></el-input-number>
            <el-button type="primary">确认</el-button>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <card name="风机开关1"></card>
        <card name="风机开关2"></card>
        <card name="风机开关3"></card>
        <card name="风机开关4"></card>
        <card name="风机开关5"></card>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
import card from "@/components/projectlist/details/card.vue";
export default {
  components: {
    card,
  },
  data() {
    return {
      num: 0,
    };
  },
};
</script>

<style scoped>
.el-card {
  height: 100%;
}
/* .myflex {
  display: flex;
  flex-direction: column;
  align-items:center;
  justify-content: center;
  text-align: center;
} */
.el-button + .el-button {
  margin-left: 0;
  margin: 2px;
}
.myflex > button,
.mytable3 > button {
  width: 100%;
}
.box-card {
  height: 100%;
}
.mytable3 {
  text-align: center;
}
.mytable3 > * {
  margin: 2px;
}

.orange {
  color: chocolate;
  font-size: 30px;
}
</style>